<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>@yield('title','LeeBlog')</title>
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="css/cl-css.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="highlight/styles/railscasts.css">
    <link rel="stylesheet" href="css/btn.css">

</head>
<body>
    {{--头部导航栏--}}
    @include('layouts.header')

<div class="cl-cantainer container">
    <div class="row">
        <div class="col-md-9 cl-left">

            {{--以下是块级模板区域，包括首页文章列表和分页按钮.不同页面需要改动，所以使用块级section--}}
            @section('content')
                父模板块级区域"还没有数据哦"
            @show

        </div>

        {{--以下是右侧微信，最新文章，标签,加入登录对话框模块--}}
        <div class="col-md-3 cl-right">
{{--            {{dd(Auth::id()==null)}}--}}
            @if($user==null)
                @include('layouts.register')
            @elseif($user!=null)
                <div class="right-card">
                    <div class="right-card-main"  style="padding: 10px 20px;font-size: 0.8em;">
                        <div class="right-card-title">登录信息</div>
                        <div class="cl-reg">
                                <p>昵称：{{$user->username}}</p>
                                <p>邮箱：{{$user->email}}</p>
                                <p><a href="/loginout">退出</a></p>
                        </div>
                    </div>
                </div>
            @endif

            @include('layouts.vx')

            @include('layouts.latest_articles')

            @include('layouts.label')

        </div>
    </div>

</div>
@include('layouts.footer')

<script src="jquery/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>

</body>
</html>
